package com.cai.activiti_demo1.delegate.errorBoundary;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.BpmnError;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

@Slf4j
public class NormalDelegate2 implements JavaDelegate {
    @Override
    public void execute(DelegateExecution execution) {
        log.info("【普通服务2触发】流程正在执行...");
        log.info("开始抛出错误...");
        //error1 绑定错误开始事件的 error reference
        throw new BpmnError("error3");
    }
}
